$(function() {
    $(".del").each(function() {
        $(this).click(function(event) {
        	event.preventDefault();
            var url = $(this).attr('href');
            bootbox.confirm({
                title: "系统提示",
                message: "是否要删除该优惠信息?",
                callback: function(result) {
                    if (result) {
                        window.location.href = url;
                    }
                },
                buttons: {
                    "cancel": {
                        "label": "取消"
                    },
                    "confirm": {
                        "label": "确定",
                        "className": "btn-danger"
                    }
                }
            });
        });
    });
})